<?php $this->fetch('public/head') ?>
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="<?php echo url('index') ?>">方案列表</a></li>
            <li class="layui-this">编辑方案</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="<?php echo url('edit') ?>" method="post">

                    <div class="layui-form-item">
                        <label class="layui-form-label">方案名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="name" value="<?php echo $rows['name'] ?>" required  lay-verify="required" placeholder="请输入标题" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">摘要</label>
                        <div class="layui-input-block">
                            <textarea name="description"  class="layui-textarea"><?php echo $rows['description'] ?></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">指导价</label>
                            <div class="layui-input-inline">
                                <input type="tel" name="zhidaojia"    value=" <?php echo $rows['zhidaojia'] ?>" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">提车价</label>
                            <div class="layui-input-inline">
                                <input type="text" name="tichejia"   value="<?php echo $rows['tichejia'] ?>" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">租期</label>
                            <div class="layui-input-inline">
                                <input type="tel" name="zuqi"   value="<?php echo $rows['zuqi'] ?>" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">月供</label>
                            <div class="layui-input-inline">
                                <input type="text" name="yuegong"   value="<?php echo $rows['yuegong'] ?>" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">购置税</label>
                        <div class="layui-input-block">
                           <input type="text" name="gouzhishui"  value="<?php echo $rows['gouzhishui']?>" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">保险</label>
                        <div class="layui-input-block">
                            <input type="text" name="baoxian" value="<?php echo $rows['baoxian']?>"  class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">显示明细</label>
                        <div class="layui-input-block">
                            <input type="radio" name="mingxi" value="1" title="是" <?php if($rows['mingxi']==1){ ?>checked="" <?php } ?>>
                            <input type="radio" name="mingxi" value="0" title="否" <?php if($rows['mingxi']!=1){ ?>checked="" <?php } ?>>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">缩略图</label>
                        <div class="layui-upload">
                            <input type="text" name="imgpath" value="<?php echo $rows['imgpath'] ?>" class="layui-input layui-input-inline" placeholder="（选填）请上传图片">
                            <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                            <img class="layui-upload-img" src="<?php echo $rows['imgpath'] ?>" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
							仅允许上传jpg,png,gif,jpeg格式，推荐尺寸130*105
						</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">Banner图</label>
                        <div class="layui-upload">
                            <input type="text" name="imgbanner" value="<?php echo $rows['imgbanner'] ?>" class="layui-input layui-input-inline" placeholder="（选填）请上传图片">
                            <button type="button" class="layui-btn _img_url"><i class="layui-icon">&#xe67c;</i>上传图片</button>
                            <img class="layui-upload-img" src="<?php echo $rows['imgbanner'] ?>" height="38" data-expander='default,diamond,turn3d,flip3d,rotate,fade'>
                        仅允许上传jpg,png,gif,jpeg格式，推荐尺寸640*396
						</div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">内容</label>
                        <div class="layui-input-block">
                            <textarea id="editor" name="content" class="layui-textarea" style="height: 200px;"><?php echo $rows['content'] ?></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="isshow" value="1" title="显示" <?php if($rows['isshow']==1){ ?>checked="" <?php } ?>>
                            <input type="radio" name="isshow" value="0" title="隐藏" <?php if($rows['isshow']!=1){ ?>checked="" <?php } ?>>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">排序</label>
                        <div class="layui-input-block">
                            <input type="text" name="weight" value="<?php echo $rows['weight'] ?>" required  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <input name="id" type="hidden" value="<?php echo $rows['id'] ?>">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $this->fetch('public/script') ?>